package com.thinkit.bigdata.web.controller;

import com.thinkit.bigdata.core.util.DESUtils;
import com.thinkit.bigdata.web.model.result.HtmlResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 加密
 *
 * @author starzou
 * @since 2014年4月13日 下午5:22:20
 **/
@RestController
@RequestMapping("/encryption")
public class FormController {

    @RequestMapping(value = "/ftp", method = RequestMethod.GET)
    public HtmlResult ftpEncryption(
            @RequestParam(value = "param") final String param
    ) {
        return HtmlResult.success(DESUtils.getEncryptString(param));
    }

}